package com.yanmaohu.yulia.bean;

import java.util.List;

public final class NationalCharacterStringLiteral implements GeneralLiteral {

    private int beginIndex;
    private int endIndex;
    private List<String> contentList;

    public NationalCharacterStringLiteral(int beginIndex, int endIndex, List<String> contentList) {
        this.beginIndex = beginIndex;
        this.endIndex = endIndex;
        this.contentList = contentList;
    }

    @Override
    public int getBeginIndex() {
        return beginIndex;
    }

    @Override
    public int getEndIndex() {
        return endIndex;
    }

    public int size() {
        return contentList.size();
    }

    public String get(int index) {
        return contentList.get(index);
    }

}
